


#import "FriendGroup.h"
#import "Friend.h"

@implementation FriendGroup

+ (instancetype)friendGroupWithDict:(NSDictionary *)dict
{
    return [[self alloc] initWithDict:dict];
}
- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
        
        NSMutableArray *tempArray = [NSMutableArray array];
        for (NSDictionary *dict in _child) {
            Friend *friend = [Friend friendWithDict:dict];
            [tempArray addObject:friend];
        }
        _child = tempArray;
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}

@end
